<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
include_once 'config.php';

Autenticacao::autenticar();
/*
function login($login, $senha){
	if(($login=="almeida") && ($senha=="duarte")){
		$_SESSION["usuario"]=1;
		return true;
	} else {
		return false;
	}
}
/*
if($_SESSION["usuario"]){

} else {
	$login 		= $_POST["Login"];
	$senha		= $_POST["Senha"];
	$auth		= login($login, $senha);
	if(!$auth) {
		header( 'Location: login.php' );
	}
}
 * 
 */
$apl = new Fabrica();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Escritorio Aberto</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/estilo.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='lib/jquery.js'></script>
<script type='text/javascript' src='lib/jquery.bgiframe.min.js'></script>
<script type='text/javascript' src='lib/jquery.ajaxQueue.js'></script>
<script type='text/javascript' src='lib/thickbox-compressed.js'></script>
<script type='text/javascript' src='lib/jquery.autocomplete.js'></script>
<script type="text/javascript" src="lib/jquery.history_remote.pack.js" ></script>
<script type="text/javascript" src="lib/jquery.tabs.pack.js" ></script>

<link rel='stylesheet' type='text/css' href='lib/jquery.autocomplete.css' />
<link rel='stylesheet' type='text/css' href='lib/thickbox.css' />
<link rel="stylesheet" type="text/css" href="lib/jquery.tabs.css"  media="print, projection, screen">

</head>
<body>
<div id="conteudo">
<div id="menu" class="sidemenu">
<?php
	$menu = new Menu();
	echo $menu;
?>
</div>
<div id="app">
<p class="titulo">Sistema de Cadastro de Processos - Vers&atilde;o 1.0</p>
<?php $apl->getAplicacao(); ?>
</div>
</div>
</body>
</html>